<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改岗位')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-post-edit" th:object="${post}">
			<input id="postId" name="postId" type="hidden" th:field="*{id}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">支出项目：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="expensesProject" id="expensesProject" th:field="*{expensesProject}" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">支出金额：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="expensesMoney" id="expensesMoney" th:field="*{expensesMoney}" required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" class="form-control">[[*{remark}]]</textarea>
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "hotel/expenses";
		
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/editExpenses", $('#form-post-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
